package com.ruima.erp.framework.vo;

import java.util.ArrayList;
import java.util.List;


public class SystemDojoTreeModel {
	public SystemDojoTreeModel(){} 
	
	public SystemDojoTreeModel(String id, String name, String type,
			List<Children> children) {
		super();
		this.id = id;
		this.name = name;
		this.type = type;
		this.children = children;
	}

	private String id;
	private String name;
	private String type;
	private List<Children> children;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public List<Children> getChildren() {
		return children;
	}

	public void setChildren(List<Children> children) {
		this.children = children;
	}

	public static void main(String[] args) {
		SystemDojoTreeModel s1 = new SystemDojoTreeModel();
		s1.setId("1");
		s1.setName("name!");
		s1.setType("");
		Children c1 = new Children("s");
		List<Children> l1 = new ArrayList<Children>();
		l1.add(c1);
		s1.setChildren(l1);
		String s= net.sf.json.JSONArray.fromObject(s1).toString();
		System.out.println(s);		
	}
}
